//
//  RYProductDetailModel.swift
//  SheYangBigData
//
//  Created by 宋海胜 on 2021/1/19.
//  Copyright © 2021 叁拾叁. All rights reserved.
//

import UIKit
import HandyJSON
import RxSwift

struct RYProductDetailModel: HandyJSON, Equatable {
    
    
    var id: String?
    var carouselImgUrl: String?
    var dictionaryId: Int?
    var productionCycleEnd: String?
    var tenantId: Int?
    var description: String?
    var version: Int?
    var present: String?
    var uuid: String?
    var sort: Int?
    var type: Int?
    var updateDate: String?
    var farmId: Int?
    var farmName: String?
    var serialNumber: String?
    var adoptedPercent: String?
    var adoptHarvest: String? //TODO: Specify the type to conforms Codable protocol
    var deviceId: String?
    var updateBy: Int?
    var name: String?
    var remarks: String?
    var typeName: String?
    var productionCycleBegin: String?
    var createBy: Int?
    var status: Int?
    var unitPrice: String?
    var remainNum: Int?
    var adoptPeopleNum: Int?
    var purchaseLimit: Int?
    var createDate: String?
    var adoptPart: String?
    var priceDescription: String?
    var productionCycle: Int?
    
    var traceRecords: [TraceRecords]?
    var adoptPrice: String?
    var adoptedNum: Int?
    var totalNum: Int?
    var detailImgUrl: String?
    
}

struct TraceRecords: HandyJSON, Equatable {
    var id: String?
    var createBy: Int?
    var uuid: String?
    var version: Int?
    var updateBy: Int?
    var name: String?
    var createDate: String?
    var cycle: Int?
    var tenantId: Int?
    var updateDate: String?
    var farmProductId: Int?
    var dictionaryId: Int?
    var startDate: Date?
    var remarks: String?
    var sort: Int?
    var status: Int?
}


struct RYProductDetailPicModel: HandyJSON, Equatable {
    var url: String?
    var id: String?
}
